from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
$django_admin_outcomment$from django.contrib import admin
$django_admin_outcomment$admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    $exampleapp_outcomment$url(r'^$exampleapp_name$/', include('$project_name$.apps.$exampleapp_name$.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    $django_admin_outcomment$url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    $django_admin_outcomment$url(r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^%s/(?P<path>.*)$' % settings.MEDIA_DIR_NAME, 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
        url(r'^%s/(?P<path>.*)$' % settings.USER_MEDIA_DIR_NAME, 'django.views.static.serve', {'document_root': settings.USER_MEDIA_ROOT}),
    )
